package com.lry.basic.jvm.asm.proxy;


import java.lang.reflect.Method;

public class SingMethodInterceptor implements MethodInterceptor {

    @Override
    public Object intercept(Object o, Method method, Object[] params) throws Throwable {
        System.out.println("before");
        Object obj = method.invoke(o,params);
        System.out.println("after");
        return obj;
    }

}
